<?php

namespace App\Http\Requests\ApiV2;

class FreightSpaceRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'warehouse' => 'required',
            'seat' => 'required',
            'name' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'warehouse.required' => __('仓库必须填写'),
            'seat.required' => __('货位必须填写'),
            'name.required' => __('仓位名称必须填写'),
        ];
    }

    public function filldata()
    {
        return [
            'warehouse' => $this->input('warehouse'),
            'seat' => $this->input('seat'),
            'name' => $this->input('name'),
            'remark' => $this->input('remark'),
        ];
    }
}
